namespace Brjnk.CoordinateSystem2D.Layers
{
    using System.Collections.Generic;

    /// <summary>
    /// </summary>
    public class GenericGraphDataAdapter : GraphDataAdapter
    {
        private GraphAdapterContext context;

        public override void Initialize(GraphAdapterContext context)
        {
            this.context = context;
        }

        public override void SetData(object data)
        { }

        public void AddDataSerie(object key, object dataObject, IList<GraphPoint> data, GraphDataInfo dataInfo, GraphStyle style)
        {
            context.AddDataSerie(key, dataObject, data, dataInfo, style);
        }

        public void ChangeStyle(object key, GraphStyle style)
        {
            context.ChangeStyle(key, style);
        }

        public void RemoveDataSerie(object key)
        {
            context.RemoveDataSerie(key);
        }
    }
}